﻿using G.Runtime;
using G.Model;

namespace G.Runtime.Action
{
    class MoveAction : GameElementAction
    {

        public MoveAction(GameElement element, GameLocation destination)
            : base(element, destination) { }

        public override void Execute(GameSpace pGame)
        {
            //Attacker.Triggers.FireMovedEvent(Attacker);
            pGame.Elements.SetPosition(Attacker, Destination);

            pGame.Elements.Actions.Clear();
        }

    }
}
